steps:
  # build the container image
  - name: 'gcr.io/cloud-builders/docker'
    args: ['build', '-t', 'gcr.io/$PROJECT_ID/adl-bank-control-panel', '.']
    # push the container image to Container Registry
  - name: 'gcr.io/cloud-builders/docker'
    args: ['push', 'gcr.io/$PROJECT_ID/adl-bank-control-panel']
    # Deploy container image to Cloud Run
  - name: 'gcr.io/cloud-builders/gcloud'
    args: ['beta', 'run', 'deploy', 'adl-bank-control-panel', '--image', 'gcr.io/$PROJECT_ID/adl-bank-control-panel', '--region', 'europe-west2','--platform', 'managed', '--allow-unauthenticated' ,'--quiet']
    timeout: 1200s
images:
  - gcr.io/$PROJECT_ID/adl-bank-control-panel
timeout: 1200s